package com.usian.pojo;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

@Data
public class User implements Serializable {
    @Id
    private Integer id;

    private String salt;

    private String name;

    private String password;

    private String phone;

    private int flag;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createdTime;
}
